package controller;

import nio.HelloPacket;
import nio.HelloServerStarter;

import com.jfinal.core.Controller;
import com.talent.aio.common.Aio;

public class IndexController extends Controller{
	public void index(){
		render("index.jsp");
	}
	
	public void aio(){
		HelloPacket hello = new HelloPacket();
		byte arr[] = {104, 101, 108, 108, 111, 32, 119, 111, 114, 108, 100}	;
		hello.setBody(arr);
		Aio.sendToUser(HelloServerStarter.serverGroupContext, getPara(), hello);
		renderJson();
	}
	
}
